//
//  ListCell.m
//  SimpleHappy
//
//  Created by Vincen on 15/11/26.
//  Copyright © 2015年 RockyFung. All rights reserved.
//

#import "ListCell.h"
#import "Define.h"

@implementation ListCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        // cell上的图片
        self.listTitleImage = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, KScreenHeight / 6, KScreenHeight / 9)];
        [self.contentView addSubview:self.listTitleImage];
        
        // cell 上的标题
        self.listTitleLabel = [[UILabel alloc]initWithFrame:CGRectMake(self.listTitleImage.frame.size.width + 50, 0, KScreenWidth - self.listTitleImage.frame.size.width - KScreenWidth / 6.25, self.listTitleImage.frame.size.height)];
        self.listTitleLabel.textAlignment = NSTextAlignmentCenter;
        self.listTitleLabel.textColor = [UIColor blackColor];
        self.listTitleLabel.font = [UIFont systemFontOfSize:KScreenWidth / 26.8];
        self.listTitleLabel.numberOfLines = 0;
        [self.contentView addSubview:self.listTitleLabel];
    }
    return self;
}







- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
